import { Button } from 'antd';
import { footerButtonsProps } from '../../type';

export function Footer({
  onClose,
  handleSubmit,
  btnDisabled,
}: footerButtonsProps) {
  return (
    <div className='flex justify-end m-2'>
      <Button
        type='primary'
        className='mr-2'
        disabled={btnDisabled}
        onClick={handleSubmit}>
        确认
      </Button>
      <Button onClick={onClose}>取消</Button>
    </div>
  );
}
